package ynu.edu.order.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import ynu.edu.common.result.Result;
import ynu.edu.order.vo.MerchantVO;

/**
 * 商家服务Feign客户端
 */
@FeignClient(name = "merchant-service", fallback = MerchantClientFallback.class)
public interface MerchantClient {

    /**
     * 根据商家ID获取商家信息
     * @param id 商家ID
     * @return 商家信息
     */
    @GetMapping("/internal/merchants/{id}")
    Result<MerchantVO> getMerchantById(@PathVariable("id") Long id);
} 